import execjs


class EncryptedAss:

    def __init__(self):
        with open('../../resources/match6/pf_trans.js', 'r', encoding='utf8') as f:
            self.js_ctx = execjs.compile(f.read())

    def encrypt(self, param1, param2):
        return self.js_ctx.call('r', param1, param2)



